/*
 * @Author: chendeji
 * @Date: 2021-11-16 12:05:29
 * @LastEditTime: 2021-11-28 09:59:01
 * @Description: 
 * @FilePath: \copy_gsy_github_app_flutter\lib\page\login\behavior\oauth_behavior.dart
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
 */

import 'package:copy_gsy_github_app_flutter/common/behavior/base_load_data_behavior.dart';
import 'package:copy_gsy_github_app_flutter/common/behavior/base_loading_behavior.dart';
import 'package:copy_gsy_github_app_flutter/repository/dao_result.dart';
import 'package:copy_gsy_github_app_flutter/repository/user_repository.dart';

class OauthBehavoir extends BaseDataLoadingBehavior<String, DataResult> {
  OauthBehavoir() : super(wrap: ShowLoadingBehavior());

  @override
  Future<DataResult> request() async {
    return await UserRepository.oauth(parames ?? '');
  }
}
